<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<link rel="stylesheet" href="./css/estilo2.css" type="text/css" /> 

<!DOCTYPE html>
<html:html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Alta tarjeta</title>
        <%@include file="cabecera.jsp" %>
        <link rel="stylesheet" href="./css/style.css" type="text/css" />
    </head>
    <body>
        <div class="contenedor">
            <logic:notEmpty name="msg">
                <bean:write name="msg" />
            </logic:notEmpty>

            <h1>Alta tarjeta</h1>
            <html:form action="/InsertarTarjeta">
                <table border="1">
                    <tbody>
                        <tr>
                            <logic:notEmpty name="seleccion">
                                <td>Seleccione una cuenta</td>
                                <td>
                                    <html:select  property="seleccion">
                                        <logic:iterate id="seleccion" name="seleccion">
                                <option name="seleccion" value="<bean:write name='seleccion' property='pkCuenta' />"><bean:write name="seleccion" property="pkCuenta" /></option>
                            </logic:iterate>
                        </html:select>
                        </td>
                    </logic:notEmpty>
                    </tr>    
                    <tr>
                        <td>N&uacute;mero</td>
                        <td><html:text property="numero" /></td>
                    </tr>
                    <tr>
                        <td>C&oacute;digo de seguridad</td>
                        <td><html:text property="codigoSeguridad" /></td>
                    </tr>
                    <tr>
                        <td>Fecha de caducidad</td>
                        <td><html:text property="fechaCaducidad" /></td>
                    </tr>
                    <tr>
                        <td>Tipo</td>
                        <td><html:text property="tipo" /></td>
                    </tr>
                    <tr>
                        <td colspan="2"><html:submit value="Crear" /></td>
                    </tr>
                    </tbody>
                </table>

                <logic:notEmpty name="msg">
                    <bean:write name="msg" />
                </logic:notEmpty>
            </html:form>
        </div>
    </body>
</html:html>
